package com.itwn.comic.mapper;

import com.itwn.comic.entity.Report;
import com.itwn.comic.vo.ReportVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;
@Repository
public interface ReportMapper {
    int deleteByPrimaryKey(long id);

    int insert(Report record);

    Report selectByPrimaryKey(Integer id);

    List<Report> selectAllComic();
    List<Report> selectAllRemark();

    int updateByPrimaryKey(Report record);

    List<ReportVo> selectRemark(@Param("status") Integer status,
                               @Param("reportType") Integer reportType,
                               @Param("reportUserId") Integer reportUserId);

    List<ReportVo> selectComic(@Param("status") Integer status,
                               @Param("reportType")Integer reportType,
                               @Param("reportUserId")Integer reportUserId,
                               @Param("resourceId")Integer resourceId);

    void updateStatus(@Param("listIds") List<Integer> listIds,
                      @Param("fromStatus") int i1,
                      @Param("toStatus") int i2);
}